import ajax from '../util/request'

// 获取
export const getParams = (params) =>ajax({
    method:'get',
    url:"/categories/"+params.id+'/attributes',
    params,
    headtype:'form'
})

// 添加参数
export const addParams = (req) =>ajax(req)

// 编辑参数
export const addParamsVals = (req) =>ajax(req)
// 删除参数
export const delParams = (url) =>ajax({
    method:'delete',
    url,
    params:{},
})